import request from '@/utils/request'

//获取砍价商品
    export function getAll() {
    return request({
    url:'/index.php/bargain/index',
      method: 'get',
    })
  }

  //修改状态
  export function bargainStatus(id,status) {
    return request({
    url:'/index.php/bargain/bargainStatus?id='+id+'&status='+status,
    method: 'get',
    })
  }

  //砍价商品删除
  export function bargainDel(id) {
    return request({
    url:'/index.php/bargain/bargainDel?id='+id,
    method: 'get',
    })
  }